package dao

import (
	"gorm.io/gorm"
	"jk-time/webook/internal/dao/article"
)

func InitTables(db *gorm.DB) error {
	// 严格来说，这个不是优秀实践
	return db.AutoMigrate(&User{}, &Retry{}, &dao.Article{}, &dao.PublishedArticle{},
		&Interactive{}, &UserLikeBiz{}, &UserCollectionBiz{})
}
